package com.heima.behavior.controller.v1;


import com.heima.behavior.service.ApArticleBehaviorService;
import com.heima.model.behavior.dtos.ArticleBehaviorDTO;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api("用户整体行为")
@RestController
@RequestMapping("/api/v1/article")
public class ApArticleBehaviorController {

    @Autowired
    private ApArticleBehaviorService apArticleBehaviorService;


    @PostMapping("/load_article_behavior")
    public ResponseResult load_article_behavior(@RequestBody @Validated ArticleBehaviorDTO dto){
        return apArticleBehaviorService.loadArticleBehavior(dto);

    }

}
